

export default class UITool
{

    private static s_resolution:number=-1;
    public static get GetScreenResolutionRatio()
    {
        if (UITool.s_resolution==-1) 
        {
            UITool.s_resolution=Laya.stage.height/Laya.stage.width;
            console.log("GetScreenResolutionRatio="+ UITool.s_resolution);
        }

        return UITool.s_resolution;
    }

}